package com.jinzheng.qianhai.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * socket用户实体类
 */
@Data
@ApiModel(value = "UserSocket对象", description = "socket接受信息")
public class UserSocket implements Serializable {

    private static final long serialVersionUID = 5390393587976656442L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "topic名称")
    @TableField("topic_name")
    private String topicName;

    @ApiModelProperty(value = "表头名称")
    @TableField("header_name")
    private String headerName;

    @ApiModelProperty(value = "发送数据")
    @TableField("note")
    private String note;

    @ApiModelProperty(value = "状态,1:已读0:未读")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
